package cn.xcstudenth.myapplication.webviewutils;

import android.content.Intent;

import cn.xcstudenth.myapplication.AppComplication;
import cn.xcstudenth.myapplication.ConstantUtils;
import cn.xcstudenth.myapplication.ImageAmplifyActivity;

/**
 * Created by Administrator on 2017/2/10.
 */

public class MJavascriptInterface {

    public MJavascriptInterface() {
    }

    @android.webkit.JavascriptInterface
    public void openImage(String img) {
        Intent intent = new Intent();
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intent.setClass(AppComplication.mContext, ImageAmplifyActivity.class);
        intent.putExtra(ConstantUtils.IMG, img);
        AppComplication.mContext.startActivity(intent);
    }
}
